﻿<%@ Page Title="Rediger Køb" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="editPurchase.aspx.cs" Inherits="UCNKompetenceBors.User.editPurchase" Culture="auto" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script language="javascript">
        function Hide() {
            document.getElementById('<%=lblConfirmUpdatedPurchase.ClientID %>').style.display = 'none';
            return false;
        }
    </script>

    <div id="profileWrapper" class="contentSmallWrapper floatLeft">
        <div id="profileMenuWrapper" class="submenuBox floatLeft">
            <div class="subMenuBoxContent">
                <ul>
                    <li>
                        <asp:HyperLink ID="hyLinkProfile" runat="server" Text="Profil"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkEditProfile" runat="server" Text="Rediger Profil"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkChangePassword" runat="server" Text="Ændre Password"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkSettings" runat="server" Text="Instillinger"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkSale" runat="server" Text="Mine salg"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkPurchases" runat="server" Text="Mine køb" ForeColor="#FF9933"></asp:HyperLink></li>
                </ul>
            </div>
        </div>

        <div id="profileContentWrapper" class="contentBoxSmall floatLeft">
            <div id="profileContent" class="floatLeft">
                <div class="inputFormSmall floatLeft">
                    <div class="inputFormSmallLeft floatLeft">
                        <div class="inputFormSmallRow contentTitle">
                            <asp:Label ID="lblEditPurchaseHeader" runat="server" Text="Rediger køb"></asp:Label>
                        </div>

                        <div class="inputFormSmallRow floatLeft">
                            <div class="inputFormSmallCellLeft floatLeft">
                                <asp:Label ID="lblEditPurchaseCategory" runat="server" Text="Kategori:"></asp:Label>
                            </div>
                            <div class="inputFormSmallCellRight floatRight">
                                <asp:DropDownList ID="ddlEditPurchaseCategory" runat="server"></asp:DropDownList>
                                <asp:RequiredFieldValidator ID="rfvalEditPurchaseCategory" runat="server" ValidationGroup="EditPurchase" InitialValue="Vælg Kategori" ErrorMessage="Kategori skal vælges" ToolTip="Kategori skal vælges" ControlToValidate="ddlEditPurchaseCategory" Display="Dynamic" Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                            </div>
                        </div>

                        <div class="inputFormSmallRow floatLeft">
                            <div class="inputFormSmallCellLeft floatLeft">
                                <asp:Label ID="lblEditPurchaseStatus" runat="server" Text="Status:"></asp:Label>
                            </div>
                            <div class="inputFormSmallCellRight floatRight">
                                <asp:CheckBox ID="chkBoxEditPurchaseStatus" runat="server" AutoPostBack="true" OnCheckedChanged="chkBoxEditPurchaseStatus_CheckedChanged" />
                            </div>
                        </div>

                        <div class="inputFormSmallRow floatLeft">
                            <div class="inputFormSmallCellLeft floatLeft">
                                <asp:Label ID="lblEditPurchaseTitle" runat="server" Text="Titel:"></asp:Label>
                            </div>
                            <div class="inputFormSmallCellRight floatRight">
                                <asp:TextBox ID="txtEditPurchaseTitle" runat="server" Width="300px" MaxLength="100"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvalEditPurchaseTitle" runat="server" ValidationGroup="EditPurchase" ErrorMessage="Titel skal udfyldes" ToolTip="Titel skal udfyldes" ControlToValidate="txtEditPurchaseTitle" Display="Dynamic" Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                            </div>
                        </div>

                        <div class="inputFormSmallRow floatLeft">
                            <div class="floatLeft">
                                <asp:Label ID="lblEditPurchaseDescription" runat="server" Text="Beskrivelse:"></asp:Label>
                                <br />
                                <br />
                                <CKEditor:CKEditorControl ID="ckeditorEditPurchaseDescription" BasePath="/ckeditor/" runat="server"></CKEditor:CKEditorControl>
                            </div>
                            <div class="inputFormEditorValidation floatRight">
                                <asp:RequiredFieldValidator ID="rfvalEditPurchaseDescription" runat="server" ValidationGroup="EditPurchase" ErrorMessage="Beskrivelse skal udfyldes" ToolTip="Beskrivelse skal udfyldes" ControlToValidate="ckeditorEditPurchaseDescription" Display="Dynamic" Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                            </div>
                        </div>

                        <div class="inputFormSmallRow floatLeft">
                            <div class="floatLeft">
                                <asp:Label ID="lblConfirmUpdatedPurchase" runat="server"></asp:Label>
                            </div>
                            <div class="inputFormButtonMargin floatRight">
                                <asp:Button ID="btnEditPurchaseCancel" runat="server" Text="Fortryd" CssClass="button" OnClick="btnEditPurchaseCancel_Click" meta:resourcekey="btnEditPurchaseCancelResource1" />
                                <asp:Button ID="btnEditPurchase" runat="server" Text="Rediger køb" ValidationGroup="EditPurchase" CssClass="button" OnClientClick="Hide()" OnClick="btnEditPurchase_Click" />
                            </div>
                        </div>
                    </div>
                    <div class="inputFormSmallRight floatRight">
                        <asp:ValidationSummary ID="valsumEditPurchase" runat="server" ForeColor="Red" HeaderText="The following errors were detected:" ValidationGroup="EditPurchase" meta:resourcekey="valsumEditPurchaseResource1" />
                    </div>
                </div>


            </div>
        </div>
    </div>
</asp:Content>
